<?php
session_cache_expire(999999999);
if(!isset($_SESSION))
{
	session_start();
}
$usname = $_SESSION['fullname'];
include '../operations/connection.php';
$selectregular = mysql_query("Select sas.*,emp.FullName FROM sa_regulation_salary sas,employee emp WHERE emp.IDEmployee = sas.employeeID AND emp.State = 1");
$number_of_page = ceil ( mysql_num_rows( $selectregular ) / $rows_per_page );


$newlang = $_REQUEST['newlang'];

if ($_REQUEST['newlang'] == "EN") {
	include "../value/value_en.php";
} else if($_REQUEST['newlang'] == "VN") {
	include "../value/value_vn.php";
}
else {
	include "../value/value_kr.php";
}
?>

			<div id="dvLstSalaryregular">
				<form action="#">
					<table style="border-bottom: 1px dotted silver; padding: 10px 5px"
						width="100%">
						<tr>
							<td class="tdfirst"><?php echo $l_employeecode;?>:</td>
							<td><input type="text" name="idemployee" readonly="readonly"
								id="idemployee" class="in_testfield"
								style="width: 516px; background: #eaeaea" /></td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_employee_name;?>:</td>
							<td><input type="text"
								onkeypress="return enterTable(event,this.id);"
								onchange="checkname(this.value);" name="nameemployee"
								id="nameemployee" class="in_testfield"
								style="width: 516px; background: #eaeaea" /></td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_basicsalary;?>:</td>
							<td><input type="text"
								value="<?=number_format($_REQUEST['basicsalary'])?>"
								onkeypress="return enterTable(event,this.id);"
								onchange="checkname(this.value);" name="basicsalary"
								id="basicsalary" class="in_testfield" style="width: 516px" /></td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_allowancebasicsalary;?>:</td>
							<td><input type="text"
								value="<?=number_format($_REQUEST['allowancebasicsalary'])?>"
								onkeypress="return enterTable(event,this.id);"
								name="allowancebasicsalary" id="allowancebasicsalary"
								class="in_testfield" style="width: 516px" /></td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_allowanceC;?>:</td>
							<td><input type="text"
								value="<?=number_format($_REQUEST['allowanceC'])?>"
								onkeypress="return enterTable(event,this.id);" id="allowanceC"
								name="allowanceC" class="in_testfield" style="width: 516px" />
							</td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_allowanceSenior;?>:</td>
							<td><input type="text"
								value="<?=number_format($_REQUEST['allowance_senior'])?>"
								onkeypress="return enterTable(event,this.id);"
								onchange="checkname(this.value);" name="allowance_senior"
								id="allowance_senior" class="in_testfield" style="width: 516px" />
							</td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_salaryforinsurance;?>:</td>
							<td><input type="text"
								value="<?=number_format($_REQUEST['insuranceSalary'])?>"
								onkeypress="return enterTable(event,this.id);"
								onchange="checkname(this.value);" name="insuranceSalary"
								id="insuranceSalary" class="in_testfield" style="width: 516px" />
							</td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_user_create;?>:</td>
							<td><input type="text"
								onkeypress="return enterTable(event,this.id);" id="user_create"
								name="user_create" class="in_testfield" style="width: 516px" />
							</td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_first_create;?>:</td>
							<td><input type="text"
								onkeypress="return enterTable(event,this.id);"
								id="first_create_update" name="first_create_update"
								class="in_testfield" style="width: 516px" />
							</td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_user_last_update;?>:</td>
							<td><input type="text"
								onkeypress="return enterTable(event,this.id);"
								id="user_last_update" name="user_last_update"
								class="in_testfield" style="width: 516px" />
							</td>
						</tr>
						<tr>
							<td class="tdfirst"><?php echo $l_time_last_update;?>:</td>
							<td><input type="text"
								onkeypress="return enterTable(event,this.id);"
								id="time_last_update" name="time_last_update"
								class="in_testfield" style="width: 516px" />
							</td>
						</tr>
					</table>

					<table style="border-bottom: 1px dotted silver; padding: 10px 5px"
						width="100%">
						<tr>
							<td class="tdfirst" style="background: none;"></td>
							<td style="padding-left: 45px">
								<input id="createSalary" name="createSalary" type="button" value="<?php echo $l_create;?>" class="buttonNormalDisable" />
								<input id="Update" name="update" type="button" value="<?php echo $l_update;?>" class="buttonNormalDisable" />
								<input id="Reset" name="Reset" type="reset" onclick="reset();" value="<?php echo $l_reset;?>" class="buttonNormal" />
							</td>
						</tr>
					</table>
				</form>
			</div>